import { defineStore } from 'pinia'
import { ref,computed } from 'vue'

export const useTestStore = defineStore('useTestStore', () => {
  const obj = ref({
    name: 'zs',
    age: 18
  })

  const addAge=()=>{
    obj.value.age++
  }
  return {addAge,obj}
})